/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_tj_chsbyplatform")
//@NamedQueries({@NamedQuery(name = "TTjChsAccessByPlatform.findAll", query = "SELECT t FROM TTjChsAccessByPlatform t"), @NamedQuery(name = "TTjChsAccessByPlatform.findById", query = "SELECT t FROM TTjChsAccessByPlatform t WHERE t.id = :id"), @NamedQuery(name = "TTjChsAccessByPlatform.findByCyear", query = "SELECT t FROM TTjChsAccessByPlatform t WHERE t.cyear = :cyear"), @NamedQuery(name = "TTjChsAccessByPlatform.findByCmonth", query = "SELECT t FROM TTjChsAccessByPlatform t WHERE t.cmonth = :cmonth"), @NamedQuery(name = "TTjChsAccessByPlatform.findByCday", query = "SELECT t FROM TTjChsAccessByPlatform t WHERE t.cday = :cday"), @NamedQuery(name = "TTjChsAccessByPlatform.findByChour", query = "SELECT t FROM TTjChsAccessByPlatform t WHERE t.chour = :chour"), @NamedQuery(name = "TTjChsAccessByPlatform.findByMpaltform", query = "SELECT t FROM TTjChsAccessByPlatform t WHERE t.mpaltform = :mpaltform"), @NamedQuery(name = "TTjChsAccessByPlatform.findByCiparea", query = "SELECT t FROM TTjChsAccessByPlatform t WHERE t.ciparea = :ciparea"), @NamedQuery(name = "TTjChsAccessByPlatform.findByUdid", query = "SELECT t FROM TTjChsAccessByPlatform t WHERE t.udid = :udid")})
public class TTjChsAccessByPlatform implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "cyear")
    private String cyear;
    @Column(name = "cmonth")
    private String cmonth;
    @Column(name = "cday")
    private String cday;
    @Column(name = "platform")
    private String platform;
    @Column(name = "ch_name")
    private String ch_name;
    @Column(name = "channel_id")
    private String channel_id;
    private Integer accessnumber;
    
    public TTjChsAccessByPlatform() {
    }

    public TTjChsAccessByPlatform(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getCyear() {
        return cyear;
    }

    public void setCyear(String cyear) {
        this.cyear = cyear;
    }

    public String getCmonth() {
        return cmonth;
    }

    public void setCmonth(String cmonth) {
        this.cmonth = cmonth;
    }

    public String getCday() {
        return cday;
    }

    public void setCday(String cday) {
        this.cday = cday;
    }



    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TTjChsAccessByPlatform)) {
            return false;
        }
        TTjChsAccessByPlatform other = (TTjChsAccessByPlatform) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TTjChsAccessByPlatform[id=" + id + "]";
    }

	/**
	 * mpaltform
	 *
	 * @return  the mpaltform
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	


	/**
	 * platform
	 *
	 * @return  the platform
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getPlatform() {
		return platform;
	}

	/**
	 * @param platform the platform to set
	 */
	public void setPlatform(String platform) {
		this.platform = platform;
	}

	/**
	 * ch_name
	 *
	 * @return  the ch_name
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getCh_name() {
		return ch_name;
	}

	/**
	 * @param ch_name the ch_name to set
	 */
	public void setCh_name(String ch_name) {
		this.ch_name = ch_name;
	}

	/**
	 * channel_id
	 *
	 * @return  the channel_id
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public String getChannel_id() {
		return channel_id;
	}

	/**
	 * @param channel_id the channel_id to set
	 */
	public void setChannel_id(String channel_id) {
		this.channel_id = channel_id;
	}

	/**
	 * accessnumber
	 *
	 * @return  the accessnumber
	 * @since   CodingExample Ver(编码范例查看) 1.0
	 */
	
	public Integer getAccessnumber() {
		return accessnumber;
	}

	/**
	 * @param accessnumber the accessnumber to set
	 */
	public void setAccessnumber(Integer accessnumber) {
		this.accessnumber = accessnumber;
	}

}
